#include "cKeepAlive.h"

#include <sstream>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/NodeIterator.h>
#include "misc/Interface.h"
#include "misc/Debug.h"
#include "client/Client.h"
/*********************************************************/
void cKeepAlive::execute()
{
	ack();
}
/*********************************************************/
std::string cKeepAlive::serialize() const
{
	Client& c = Client::Instance();
	std::ostringstream		ostr;
	id = c.getID();

	ostr << "<GS id='" << id << "'>";
	ostr << "<KeepAlive></KeepAlive>";
	ostr << "</GS>";

	return( ostr.str() );
}
/*********************************************************/
void cKeepAlive::deserialize(Poco::XML::NodeIterator& it)
{
	// This message doesn't carry any specific data so we do nothing here
}
/*********************************************************/
